@isTest
private class Test_MobileAppEditRequestExtension {

    public static void createData()
    {
        List<String> requestedForTypes = new List<String>();
        requestedForTypes.add('Banks');
        requestedForTypes.add('Etisalat Services');
        requestedForTypes.add('Purpose of Visit');
        requestedForTypes.add('Embassy');
        requestedForTypes.add('Freereq Zone');
        requestedForTypes.add('Port');
        requestedForTypes.add('Lost Documents');
        requestedForTypes.add('Customs Clarification');
        requestedForTypes.add('Customs Code Number');
        requestedForTypes.add('Emirates');
        requestedForTypes.add('Vehicle Type');
        requestedForTypes.add('Vehicle');
        requestedForTypes.add('Lost Document Address To');
        requestedForTypes.add('Certificate of Origin');
        
        List<Requested_For__c> requestedForList = new List<Requested_For__c>();
        
        for(string requestType : requestedForTypes)
        {
            Requested_For__c newRequestedFor = new Requested_For__c();
            newRequestedFor.isActive__c = True;
            newRequestedFor.Type__c = requestType;
            newRequestedFor.Name = 'Test';
            requestedForList.add(newRequestedFor);
        }
        
        Requested_For__c newRequestedFor = new Requested_For__c();
        newRequestedFor.isActive__c = True;
        newRequestedFor.Type__c = 'Vehicle';
        newRequestedFor.Name = 'Ajman Traffic Department';
        requestedForList.add(newRequestedFor);
        
        newRequestedFor = new Requested_For__c();
        newRequestedFor.isActive__c = True;
        newRequestedFor.Type__c = 'Lost Document Address To';
        newRequestedFor.Name = 'Ajman Police Department';
        requestedForList.add(newRequestedFor);
        
        insert requestedForList;
        
        List<String> countriesNamesList = new List<String>();
        countriesNamesList.add('United Arab Emirates');
        countriesNamesList.add('Egypt');
        
        List<Country__c> countriesList = new List<Country__c>();
        for(String countryName : countriesNamesList)
        {
            Country__c newCountry = new Country__c();
            newCountry.Name = countryName;
            countriesList.add(newCountry);
        }
        insert countriesList;
    }
    
    // Methods for testing
    public static testMethod void testMobileAppEditRequestExtension() {
        
        createData();
        
        PageReference pageRef = Page.MobileApp_Open_BankLetter_Edit;   
        Test.setCurrentPage(pageRef);
        
        Request__c newRequest = new Request__c();
        
        ApexPages.StandardController requestStandardController = new ApexPages.StandardController(newRequest);
        MobileAppEditRequestExtension editRequestExtension = new MobileAppEditRequestExtension(requestStandardController);
        
   }
}